package hotciv.view;

import java.awt.event.MouseEvent;

import hotciv.framework.Game;
import hotciv.tools.InspectingTool;
import hotciv.tools.MoveTool;
import hotciv.tools.ShieldTool;
import hotciv.tools.UnitActionTool;
import minidraw.framework.DrawingEditor;
import minidraw.framework.Tool;
import minidraw.standard.NullTool;

public class HotCivStateTool extends NullTool 
{
	private Tool insepctiontool, movetool, unitactiontool, shieldtool;
	
	public HotCivStateTool(Game game, DrawingEditor editor)
	{
		this.insepctiontool = new InspectingTool(game, editor);
		this.movetool = new MoveTool(game, editor);
		this.unitactiontool = new UnitActionTool(game, editor);
		this.shieldtool = new ShieldTool(game, editor);
	}
	
	public void mouseUp(MouseEvent e, int x, int y)
	{
			this.movetool.mouseUp(e, x, y);
			this.unitactiontool.mouseUp(e, x, y);
			this.insepctiontool.mouseUp(e, x, y);
			this.shieldtool.mouseUp(e, x, y);
	}
}
